#pragma once
#include "CircleMovable.h"
#include <vector>
#define THETA_VITESSE 0.00001
using namespace std;
class Ball :
	public CircleMovable
{
private:
	double _vitesse;
	double _resistance;
public:
	Ball(GameRectangle &);
	~Ball(void);
	virtual void InitEffect();
	virtual int Collision(DrawableObject *ob);
	virtual void Anime(vector<DrawableObject*> &);
	void InitBall();
	void SetMoveParam(Vector2D &, double force = -1, double resistance = -1);
	void AddVitesse(double v);
	void SetVitesse(double v){_vitesse = 0;AddVitesse(_vitesse);}
	void SetResistance(double r){ _resistance = r;}
	bool IsMove(){return _vitesse>THETA_VITESSE;}

};

